from flask import session
# 导入扩展flask_script扩展
from flask_script import Manager
# 导入flask_maigrate
from flask_migrate import Migrate,MigrateCommand
# 导入info目录下的create_app函数
from info import create_app,db
app = create_app('deve')
manager = Manager(app)
# 添加迁移命令
Migrate(app,db)
manager.add_command('db,MigrateCommand')

# 实例化管理器对象
manager = Manager(app)


# 启动程序,哈哈哈
if __name__ == '__main__':
    app.run()
